//package com.jindi.jacococli.biz.business.wrapper;
//
//import com.google.protobuf.Empty;
//import com.google.protobuf.Int64Value;
//import com.jindi.jacococli.sdk.proto.QueryUserDTO;
//import com.jindi.jacococli.sdk.proto.UserListDTO;
//import com.jindi.jacococli.sdk.proto.UserDTO;
//import com.jindi.jacococli.sdk.proto.RemoteUserService;
//import com.jindi.infra.core.util.PbUtils;
//import com.jindi.infra.core.annotation.RPCCallOption;
//import com.jindi.infra.core.annotation.RPCFallback;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Service;
//
/**
 * 调用其他远程服务降级实现
 */
//@Slf4j
//@RPCFallback
//public class RemoteCallRpcServiceFallback extends RemoteUserService {
//
//    /**
//     * 单个方法的降级实现
//     * @RPCCallOption 指定触发降级异常
//     */
//    @RPCCallOption(exception = Exception.class)
//    @Override
//    public UserListDTO getAllUsers(QueryUserDTO queryUserDTO) {
//        return null;
//    }
//
//    @RPCCallOption(exception = RuntimeException.class)
//    @Override
//    public Empty updateUser(UserDTO userDTO) {
//        return null;
//    }
//
//    @RPCCallOption(exception = Throwable.class)
//    @Override
//    public UserDTO getById(Int64Value idDTO) {
//        return null;
//    }
//}

